@using React.AspNet
@using React.RenderFunctions
@using React.Router

@{
	Layout = "_Layout";
	var emotionFunctions = new EmotionFunctions();
	var styledComponentsFunctions = new StyledComponentsFunctions();
	var reactJssFunctions = new ReactJssFunctions();
	var helmetFunctions = new ReactHelmetFunctions();

	var chainedFunctions = new ChainedRenderFunctions(emotionFunctions, styledComponentsFunctions, reactJssFunctions, helmetFunctions);
}
@Html.ReactRouter("RootComponent", new { }, renderFunctions: chainedFunctions)
@{
	ViewBag.ServerStyles = styledComponentsFunctions.RenderedStyles + reactJssFunctions.RenderedStyles;
	ViewBag.HelmetTitle = helmetFunctions.RenderedHelmet.GetValueOrDefault("title");
}
<script src="/components-bundle.generated.js"></script>
@Html.ReactInitJavaScript()
